package com.zhangtai.modules.vo;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zhangtai.config.LongJsonDeserializer;
import com.zhangtai.config.LongJsonSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class UpdateSalaryBandVo {


    @NotNull(message = "id不能为空")
    @ApiModelProperty(value="体系id",required = true)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long id;


    /**
     * 体系
     */

    @ApiModelProperty(value="体系id,读 /salary/getOrgSystem 接口获取",required = true)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long orgSystemId;
    /**
     * 条线
     */

    @ApiModelProperty(value="条线id，读 /salary/getOrgLine 接口获取",required = true)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long orgLineId;
    /**
     * 级别
     */

    @ApiModelProperty(value="职级，查询 /job/findJobLevel 接口获取",required =true)
    private String jobLevel;



    @ApiModelProperty(value="职级id，/job/findJobLevel 接口获取",required = true)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long jobLevelId;
    /**
     * 一档薪水
     */
    @ApiModelProperty(value="一档薪资",required = true)
    private BigDecimal salaryLevel1;
    /**
     * 二挡薪水
     */
    @ApiModelProperty(value="二档薪资",required = true)
    private BigDecimal salaryLevel2;
    /**
     * 三挡薪水
     */
    @ApiModelProperty(value="三档薪资",required = true)
    private BigDecimal salaryLevel3;


    @ApiModelProperty(value="体系名称，读 /salary/getOrgSystem 接口获取",required = true)
    private String orgSystemName;

    @ApiModelProperty(value="条线名称，读 /salary/getOrgLine 接口获取",required = true)
    private String orgLineName;



    @ApiModelProperty(value="排序",required = false)
    private Integer sort;

}
